package DaEr1_2;

import java.util.Scanner;

public class SanShuXiaoDaoDa {
    public static void main(String[] args) {
        int r;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请任意输出三个整数：");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
//        if ((a<b)&&(b<c)){
//            System.out.println(a+"<"+b+"<"+c);
//        }else if ((a<b)&&(a>c)){
//            System.out.println(c+"<"+a+"<"+b);
//        }else if ((a>b)&&(a<c)){
//            System.out.println(b+"<"+a+"<"+c);
//        }else if ((a>b)&&(b>c)){
//            System.out.println(c+"<"+b+"<"+a);
//        }else if ((a<c)&&(b>c)){
//            System.out.println(a+"<"+c+"<"+b);
//        }else if ((b<c)&&(a>c)){
//            System.out.println(b+"<"+c+"<"+a);
//        }
        if (a>b){
            r=a;a=b;b=r;
        }
        if (a>c){
            r=a;a=c;c=r;
        }
        if (b>c){
            r=b;b=c;c=r;
        }
        System.out.println(a+"和"+b+"和"+c);
    }
}
